0.0
NA
CVE-2022-50876
usb: musb: Fix musb_gadget.c rxstate overflow bug
Description

In the Linux kernel, the following vulnerability has been resolved: usb: musb: Fix musb_gadget.c rxstate overflow bug The usb function device call musb_gadget_queue() adds the passed request to musb_ep::req_list,If the (request->length > musb_ep->packet_sz) and (is_buffer_mapped(req) return false),the rxstate() will copy all data in fifo to request->buf which may cause request->buf out of bounds. Fix it by add the length check : fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);

INFO

Published Date :

Dec. 30, 2025, 1:16 p.m.

Last Modified :

Dec. 30, 2025, 1:16 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2022-50876 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Fix a bug in musb_gadget.c that could lead to buffer overflow and memory corruption.
  • Update the Linux kernel to include the fix for the musb_gadget.c rxstate overflow bug.
  • Verify the integrity of the data copied to request->buf.
  • Apply the length check as described in the fix.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-50876 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-50876 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-50876 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-50876 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 30, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: usb: musb: Fix musb_gadget.c rxstate overflow bug The usb function device call musb_gadget_queue() adds the passed request to musb_ep::req_list,If the (request->length > musb_ep->packet_sz) and (is_buffer_mapped(req) return false),the rxstate() will copy all data in fifo to request->buf which may cause request->buf out of bounds. Fix it by add the length check : fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);
    Added Reference https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db
    Added Reference https://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76
    Added Reference https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a
    Added Reference https://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7
    Added Reference https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167
    Added Reference https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96
    Added Reference https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9b
    Added Reference https://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9
    Added Reference https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.